#!/usr/bin/python
# encoding=utf-8
import time
import tools
import requests

while True:
    r = requests.post('https://api.zhuandaonet.com/v1.0/user/register',
                      data={"password": "abcd8960", "cliCode": "fdasas", "phone": "15044628960", "invitecode": "13409728236", "brand_name": "赚道钱包", "vericode": "461403", "brand_id": "1"}
                      )
    print(r.text)
    status_code = r.status_code
    print(time.time(), status_code)
    if status_code == 200:
        tools.send_email('Zdn Server is Ok!!!')
        break
    time.sleep(60)
